#include <bits/stdc++.h>
using namespace std;

int gcd(int a, int b) {
	int t;
	while (b != 0) {
		t = a % b;
		a = b;
		b = t;
	}
	return a;
}

int main() {
	int a, b, c;
	int temp;
	cin >> a >> b >> c;
	if (a > b) {
		temp = a;
		a = b;
		b = temp;
	}
	if (b > c) {
		temp = c;
		c = b;
		b = temp;
	}
	if (a > b) {
		temp = a;
		a = b;
		b = temp;
	}
	temp = gcd(a, c);
	a = a / temp;
	c = c / temp;
	cout << a << '/' << c;
	return 0;
}